
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type MemberCardRequest struct {

	CardBatchId string `json:"card_batch_id" form:"card_batch_id"`

	CardNumber string `json:"card_number" form:"card_number"`

	CardPassword string `json:"card_password" form:"card_password"`

	UseUid string `json:"use_uid" form:"use_uid"`

	UseTime string `json:"use_time" form:"use_time"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

	UpdateTime string `json:"update_time" form:"update_time"`

}

func (r *MemberCardRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *MemberCardRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"card_batch_id": "required",

		"card_number": "required",

		"card_password": "required",

		"use_uid": "required",

		"use_time": "required",

		"status": "required",

		"add_time": "required",

		"update_time": "required",

	}
}

func (r *MemberCardRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MemberCardRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MemberCardRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
